package com.opener.web.service.file;

import javax.servlet.http.HttpServletResponse;
import java.io.File;
import java.io.InputStream;

/**
 * Created by baboy on 06/06/2017.
 */
public interface FileService {
    public File saveTmpFile(String fn, InputStream is);
    public boolean moveFile(File srcFile, File destFile);
    public File saveFile(String srcFp, String dir);
    public File saveFile(File srcFile, String destFp);
    public File getTmpFile(String fn);
    public File getStorageFile(String fn);
    public boolean setNginxFileDownloadHeader(HttpServletResponse res, String fn, String fp, String mimeType);
}
